package config

type Mysql struct {
	Type        string `json:"type" yaml:"type"`
	User        string `json:"user" yaml:"user"`
	Password    string `json:"password" yaml:"password"`
	Host        string `json:"host" yaml:"host"`
	Port        int    `json:"port" yaml:"port"`
	Name        string `json:"name" yaml:"name"`
	TablePrefix string `json:"table_prefix" yaml:"table_prefix"`
	MaxIdleConn int    `json:"max_idle_conn" yaml:"max_idle_conn"`
	MaxOpenConn int    `json:"max_open_conn" yaml:"max_open_conn"`
	MaxLifeTime int    `json:"max_life_time" yaml:"max_life_time"`
	MaxIdleTime int    `json:"max_idle_time" yaml:"max_idle_time"`
	LogMode     bool   `json:"log_mode" yaml:"log_mode"`
	ZapLogger   bool   `json:"zap_logger" yaml:"zap_logger"` // 切换Zap日志记录器
}
